import { UserLoginAccount } from '../stores/Login'
import { useRouter } from 'vue-router'
export const usrMy = () => {
    //获取store
    const accountStore = UserLoginAccount()
    //跳转到订单页面
    const router=useRouter()
    const bingOrderone=()=>{
        router.push({path:'/Myorder',query:{index:1}})
    }
    const bingOrdertwo=()=>{
        router.push({path:'/Myorder',query:{index:2}})
    }
    const bingOrderthree=()=>{
        router.push({path:'/Myorder',query:{index:3}})
    }
    const bingOrderfour=()=>{
        router.push({path:'/Myorder',query:{index:4}})
    }
    //设置跳转
    const onClickRight=()=>router.push('/setup')
    //收藏
    const bingCollection=()=>router.push('/Collection')
    return { accountStore,bingOrderone,bingOrdertwo,bingOrderthree ,bingOrderfour,onClickRight ,bingCollection}
}
